﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="demoUpdatePanel.aspx.cs" Inherits="UpdatePanel_demoUpdatePanel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="demoUpdatePanel.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="SM" runat="server">
          <Scripts>
            <asp:ScriptReference Assembly="JUtil.Web" Name="JUtil.Web.JavaScript.jutil-all.js" />
          </Scripts>
        </asp:ScriptManager>
            
        <div class="udp-outer">
        <asp:label ID="Label1" runat="server" text="Label"></asp:label>
        <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
        <asp:UpdatePanel 
          ID="UpdatePanel1" 
          runat="server" 
          UpdateMode="Conditional">
          <ContentTemplate>
            <div class="udp1">
            <asp:label ID="Label2" runat="server" text="Label"></asp:label>
            <asp:Button ID="Button2" runat="server" Text="Button" onclick="Button2_Click" />
            <asp:UpdatePanel 
              ID="UpdatePanel2" 
              runat="server" UpdateMode="Conditional">
              <ContentTemplate>
                <div class="udp2">
                  <asp:label ID="Label3" runat="server" text="Label"></asp:label>
                  <asp:Button ID="Button3" runat="server" Text="Button" onclick="Button3_Click" />
                </div>
              </ContentTemplate>
            </asp:UpdatePanel>
            </div>
          </ContentTemplate>
        </asp:UpdatePanel>
        </div>
        
        <div class="udp-outer">
        <asp:label ID="Label4" runat="server" text="Label"></asp:label>
        <asp:Button ID="Button4" runat="server" Text="Button" onclick="Button4_Click" />
        <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
          <ContentTemplate>
            <div class="udp1">
              <asp:label ID="Label5" runat="server" text="Label"></asp:label>
              <asp:Button ID="Button5" runat="server" Text="Button" onclick="Button5_Click" />
              <asp:UpdatePanel 
                ID="UpdatePanel4" 
                runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                  <div class="udp2">
                    <asp:label ID="Label6" runat="server" text="Label"></asp:label>
                    <asp:Button ID="Button6" runat="server" Text="Button" onclick="Button6_Click" />
                  </div>
                </ContentTemplate>
              </asp:UpdatePanel>
            </div>
          
          </ContentTemplate>
        </asp:UpdatePanel>
        </div>        
    </div>
    </form>
</body>
</html>
